package com.farm.kaiping.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * 用户登录实体类
 *
 * @author zhuhui
 * @since 2024-11-26 23:33:47
 */
@Data
@ApiModel("用户登录")
public class SysUserLoginPO {
	/**
	 * 用户名
	 */
	@ApiModelProperty("用户名")
	@Length(max = 64, message = "用户名的长度不能超过64")
	@NotEmpty(message = "用户名不能为空")
	private String username;
	/**
	 * 密码
	 */
	@ApiModelProperty("密码")
	@Length(min = 6,max = 255, message = "密码的长度在6~255个字符之间")
	@NotEmpty(message = "密码不能为空")
	private String password;



}
